home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / bipl.zip / PROCS.ZIP / RANDREAL.ICN < prev    next >
Text File  |  1992-09-28  |  585b  |  23 lines

  1. ############################################################################
  2. #
  3. #    File:     randreal.icn
  4. #
  5. #    Subject:  Procedure to randomly select real number in range
  6. #
  7. #    Author:   Ralph E. Griswold
  8. #
  9. #    Date:     December 31, 1991
  10. #
  11. ###########################################################################
  12. #
  13. #  randreal(low, high) returns a randomly selected real number in the
  14. #  range between low and high.
  15. #
  16. ############################################################################
  17.  
  18. procedure randreal(low, high)
  19.  
  20.    return ?0 * (high - low) + low
  21.  
  22. end
  23.